import { request } from "../http/request";

export const upLoadExcelBook = () => {};

export const getBooksByPage = (param: any) =>
  request("/books/list", "get", param);

export const saveBookByForm = (param: any) =>
  request("/books/add", "post", param);

//上传pdf文件
export const updateBookFileUrlById = (param: any) => request("/books/update/fileurl", "post", param);

//修改分类
export const updateBookTypeById = (param: any) => request("/books/update/booktype", "post", param);

//修改图书状态
export const updateBookStatusById = (param: any) => request("/books/update/status", "post", param);

export const searchBookByName = (param:any) => request('/books/search','get',param) 



